<!-- 主页-借款管理-添加 -->
<section id="container">
    <!--main content start-->
    <section id="main-content">
        <section class="wrapper">
            <!--state overview end-->
            <div class="row">
                <div class="col-lg-12">
                    <div class="alert alert-block alert-warning fade in">
                        <button data-dismiss="alert" class="close close-sm" type="button">
                            <i class="icon-remove"></i>
                        </button>
                        <strong>注意事项：</strong><br />
                        1、只有立项通过的项目才可以挂靠费用和进行采购等；<br />
                        2、如果费用的发生为了某个线索阶段的项目，请选择该线索阶段项目归属的部门项目挂靠费用。
                    </div>
                    <section class="panel">
                        <header class="panel-heading">
                            <div class="search-box">
                                借款信息
                            </div>
                        </header>
                        <div class="panel-body">
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">借款类型</label>
                                <div class="col-sm-10">
                                    <select class="form-control typesel" ng-model="borrow.borrowingType"
                                        certus-required ng-change="personChange()">
                                        <option value="{{xx.code}}" ng-repeat="xx in personalSelect">{{xx.name}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm" ng-hide="borrow.personVisible">
                                <label class="col-sm-2 control-label">项目名称</label>
                                <div class="col-sm-10">
                                    <input type="text" list="browsers" class="form-control tyepoption" placeholder="自动检索，查询结果较多时候，系统不显示，需要尽量多输入相关字段"
                                        certus-required ng-model="borrow.projName">
                                    <datalist id="browsers">
                                        <option ng-repeat="x in userProjSelect2" value="{{x.projName}}">
                                    </datalist>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">借款金额*</label>
                                <div class="col-sm-10">
                                    <div class="input-group m-bot15">
                                        <span class="input-group-addon">￥</span>
                                        <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" class="form-control needCertus"
                                        certus-required ng-model="borrow.borrowingAmount">
                                        <span class="input-group-addon">元</span>
                                    </div>
                                    <!-- <input type="text" class="form-control" > -->
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">申请事由</label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" ng-model="borrow.borrowingOrigin" certus-an-limit-length="200" certus-required></textarea>
                                </div>
                            </div>
                        </div>
                    </section>

                    <section class="panel">
                        <div class="panel-body">
                            <p class="default-buttons">
                                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                                <a href="javascript:void(0);" class="button-next  btn btn-success btn-l10" ng-click="borrowSubmitAgain()">确认提交</a>
                            </p>
                        </div>
                    </section>

                </div>
            </div>
        </section>
    </section>
    <!--main content end-->
</section>

<script type="text/javascript" src="js/proinfo/borrow/borrowExamineEnd.js"></script>
<script type="text/javascript" src="js/borrowing/borrowing.js"></script>